﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Didaku.Robot.CubeOctopus.Base
{
    partial class MechanicalArmsControlPanel : UserControl
    {
        protected RobotCommandant _Commandant;

        public MechanicalArmsControlPanel()
        {
            InitializeComponent();
        }

        public void SetCommandant(RobotCommandant commandant)
        {
            _Commandant = commandant;
        }

        private void InitPositionButtonClick(object sender, EventArgs e)
        {
            var command = new Command();
            command.SetSteering(new[]
                {
                    new Steering {Index = 1, Position = 1500}, 
                    new Steering {Index = 2, Position = 1500}
                });
            _Commandant.SendCommand(command);
        }

    }
}
